package com.example.petstoreservice.mapper;

import com.example.petstoreservice.entity.Coupon;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CouponMapper {
    List<Coupon> getAllCoupons();
    List<Coupon> getCouponsByUsername(String username);
    int insertCoupon(Coupon coupon);
    int updateCoupon(Coupon coupon);
    int deleteCoupon(@Param("couponId") int couponId);
}
